<template>
	<view class="page">
		<view class="container">
			<view class="header">
				<text>财富</text>
				<view class="search">
					<input class="searchInput" type="text" value="" placeholder="搜索相关信息" />
					<image class="searchImg" src="../../static/wealthImg/路径%2019.png" mode=""></image>
				</view>
				<image src="../../static/wealthImg/组%204735.png" mode=""></image>
				<image src="../../static/wealthImg/组%204736.png" mode=""></image>
			</view>
		</view>
		<view class="main">
			<view class="main-top">
				<view class="left">
					<text>总资产</text>
					<text>0.00</text>
				</view>
				<view class="right">
					<text>最新收益</text>
					<text>0.00</text>
				</view>
			</view>
			<view class="content">
				<view class="top">
					<homeNav></homeNav>
				</view>
				<view class="line">
					<view></view>
					<text>行情</text>
				</view>
				<view class="item item1">
					<view class="top">
						<view class="left">
							<view class="top">
								<view>
									<text>深圳成指</text>
									<text>14828.80</text>
									<view>
										<text>-41.86</text>
										<text>-0.28%</text>
									</view>
								</view>
								<view>
									<text>上证指数</text>
									<text>14828.80</text>
									<view>
										<text>-41.86</text>
										<text>-0.28%</text>
									</view>
								</view>
								<view>
									<text>创业板指</text>
									<text>14828.80</text>
									<view>
										<text>-41.86</text>
										<text>-0.28%</text>
									</view>
								</view>
							</view>
							<view class="bottom">
								<view>
									<image src="../../static/wealthImg/组%204728.png" mode=""></image>
									<text>新春福利 速领50元红包</text>
								</view>
								<view></view>
								<view>
									<image src="../../static/wealthImg/组%204729.png" mode=""></image>
									<text>福利：领取1288元红包</text>
								</view>
							</view>
						</view>
					</view>
					<view class="top_image">
						<image src="../../static/wealthImg/蒙版组%2051.png" mode=""></image>
					</view>
				</view>
				<view class="line">
					<view></view>
					<text>基金投顾</text>
				</view>
				<view class="item item2">
					<view>
						<text>智能投顾</text>
						<text>测一测合适那种组合</text>
						<text>精选打造 专属方案</text>
						<text>去测评 > </text>
					</view>
					<view>
						<text>追求高收益</text>
						<text>南方股债轮动进取组合</text>
						<text>近一年收益59.15%</text>
						<text>查看详情 > </text>
					</view>
				</view>
				<view class="line line1">
					<view></view>
					<text>热门基金</text>
					<text>></text>
				</view>
				<view class="item item3">
					<view class="top">
						<view class="active">
							<text>推荐</text>
						</view><view>
							<text>稳健之选</text>
						</view><view>
							<text>长跑之选</text>
						</view><view>
							<text>港股精选</text>
						</view>
					</view>
					<view class="bottom">
						<view class="item">
							<view class="top">
								<text>广发资源优选A股</text>
								<view>
									<text>政策利好</text>
								</view>
							</view>
							<view class="middle">
								<view class="item">
									<view>
										<text>88.23</text>
										<text>%</text>
										<text>\n</text>
										<text>近一年的收益率</text>
									</view>
									<view>
										<text>前5%</text>
										<text>同类排名</text>
									</view>
									<view>
										<text>周期行业</text>
										<text>大宗商品 库存低位</text>
									</view>
								</view>
							</view>
						</view>
						<view class="item">
							<view class="top">
								<text>南方新优享混合</text>
								<!-- <view>
									<text></text>
								</view> -->
							</view>
							<view class="middle">
								<view class="item">
									<view>
										<text>55.30</text>
										<text>%</text>
										<text>\n</text>
										<text>近一年的收益率</text>
									</view>
									<view>
										<text>前10%</text>
										<text>同类排名</text>
									</view>
									<view>
										<text>大国制造</text>
										<text>基建制造 转型升级</text>
									</view>
								</view>
							</view>
						</view>
						<view class="item">
							<view class="top">
								<text>汇添富双利债券A</text>
								<view>
									<text>政策利好</text>
								</view>
							</view>
							<view class="middle">
								<view class="item">
									<view>
										<text>77.36</text>
										<text>%</text>
										<text>\n</text>
										<text>近一年的收益率</text>
									</view>
									<view>
										<text>前10%</text>
										<text>同类排名</text>
									</view>
									<view>
										<text>长青板块</text>
										<text>白酒+消费内循环</text>
									</view>
								</view>
							</view>
						</view>
					</view>
				</view>
				<view class="item item4">
					<text>加载更多...</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import homeNav from '../../components/homeWealth/homeNav.vue'
	export default {
		components: {
			homeNav
		},
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>


<style scoped lang="scss">
	.page {
		background-color: #3476f1;
		font-family: 苹方, sans-serif;
		overflow: hidden;
	}

	.container{
		height: 114rpx;
		position: fixed;
		background-color: #3476f1;
		.header {
			display: flex;
			align-items: center;
			image {
				width: 48rpx;
				height: 48rpx;
				margin-right: 24rpx;
			}
			.search {
				position: relative;
		
				.searchInput {
					width: 446rpx;
					background-color: #ffffff;
					height: 60rpx;
					border-radius: 50rpx;
					box-sizing: border-box;
					padding-left: 74rpx;
					margin-right: 24rpx;
					font-size: 24rpx;
					color: #cccccc;
				}
		
				.searchImg {
					position: absolute;
					width: 32rpx;
					height: 32rpx;
					top: 16rpx;
					left: 16rpx;
		
				}
			}
		
			text {
				font-size: 44rpx;
				color: white;
				font-weight: bold;
				margin: 0 24rpx;
			}
		}
	}

	.main {
		overflow: hidden;
		background-color: #ffe3c0;
		border-top-left-radius: 50rpx;
		margin-top: 114rpx;
		.main-top {
			display: flex;
			color: #333333;
			view {
				display: flex;
				flex-direction: column;
				text-align: center;
				overflow: hidden;
			}

			.left {
				margin-left: 154rpx;
				margin-right: 242rpx;
			}

			.left,
			.right {
				text:nth-of-type(2) {
					font-size: 36rpx;
					font-weight: bold;
					margin-bottom: 20rpx;
				}

				text:nth-of-type(1) {
					font-size: 24rpx;
					margin-top: 42rpx;
					margin-bottom: 24rpx;
				}
			}
		}

		.content {
			box-sizing: border-box;
			padding-left: 24rpx;
			background-color: #ffffff;
			border-top-left-radius: 50rpx;
			>.line {
				margin-top: 40rpx;
				display: flex;
				align-items: center;
				margin-bottom: 20rpx;

				view {
					width: 8rpx;
					height: 30rpx;
					background-color: #3476f1;
					margin-right: 16rpx;
				}

				text {
					font-size: 28rpx;
					font-weight: bold;
				}
			}
			>.line1{
				display: flex;
				text:nth-of-type(2){
					margin-left: 550rpx;
				}
			}
			>.item1 {
				>.top {
					width: 702rpx;
					box-shadow: 0 0 20rpx 3rpx #F1F1F1;
					border-radius: 15rpx;
					>.left {
							width: 100%;
							height: 100%;
							box-sizing: border-box;
							padding: 30rpx 24rpx;
						.top{
							display: flex;
							justify-content: space-between;
							>view {
								display: flex;
								flex-direction: column;
								align-items: center;
								>text:nth-of-type(1) {
									font-size: 28rpx;
									color: #333333;
									margin-bottom: 28rpx;
								}
							
								>text:nth-of-type(2) {
									font-size: 32rpx;
									color: #f85656;
									margin-bottom: 10rpx;
								}
							
								>view {
									font-size: 24rpx;
									color: #f85656;
									>text{
										margin-right: 6rpx;
									}
								}
							}
						}
						.bottom{
							display: flex;
							width: 654rpx;
							height: 58rpx;
							margin: 0 auto;
							font-size: 24rpx;
							margin-top: 30rpx;
							align-content: center;
							flex-wrap: wrap;
							align-items: center;
							background-color: #eaf1fe;
							>view:not(:nth-of-type(2)){
								image{
									width: 16rpx;
									height: 16rpx;
									margin-right: 10rpx;
								}
								text{
									font-size: 24rpx;
									color: #333333;
								}
							}
							>view:nth-of-type(2){
								width: 1rpx;
								height: 30rpx;
								background-color: #ccc;
								margin-left: 32rpx;
							}
							>view >image:first-child{
								margin-left: 24rpx;
							}
						}
					}
				}

				>.top_image {
					width: 702rpx;
					height: 180rpx;
					margin-top: 40rpx;
					image {
						width: 100%;
						height: 100%;
					}
				}
			}
			>.item2{
				width: 702rpx;
				height: 268rpx;
				display: flex;
				justify-content: space-between;
				>view{
					width: 340rpx;
					height: 100%;
					box-sizing: border-box;
					padding: 30rpx 24rpx;
					box-shadow: 0 0 20rpx 3rpx #F1F1F1;
					border-radius: 15rpx;
					display: flex;
					flex-direction: column;
					text:nth-of-type(1){
						width: 102rpx;
						height: 32rpx;
						text-align: center;
						display: block;
						font-size: 20rpx;
						color: #3476f1;
						background-color:#eaf1fe;
						margin-bottom: 22rpx;
					}
					text:nth-of-type(2){
						font-size: 28rpx;
						color: #333333;
						font-weight: bold;
						margin-bottom: 10rpx;
					}
					text:nth-of-type(3){
						font-size: 24rpx;
						color: #999999;
						margin-bottom: 32rpx;
					}
					text:nth-of-type(4){
						font-size: 28rpx;
						color: #333333;
					}
				}
			}
			>.item3{
				width: 702rpx;
				box-sizing: border-box;
				.active{
					border-radius: 8rpx;
					background-color: #3476f1;
					color: #ffffff;
					font-size: 28rpx;
				}
				font-size: 24rpx;
				color: #999999;
				.top{
					display: flex;
					justify-content: flex-start;
					height: 68rpx;
					>view{
						padding: 0 15rpx;
						height: 48rpx;
						line-height: 48rpx;
						text-align: center;
						margin-right: 40rpx;
					}
				}
				.bottom{
					height: 580rpx;
					padding: 30rpx;
					box-shadow: 0 0 20rpx 3rpx #F1F1F1;
					border-radius: 15rpx;
					>.item:not(:nth-of-type(1)){
						margin-top: 30rpx;
					}
					>.item{
						box-sizing: border-box;
						border-bottom: 1rpx solid #ddd;
						>.top{
							margin-bottom: 26rpx;
							display: flex;
							align-items: center;
							height: 34rpx;
							line-height: 34rpx;
							>text{
								font-size: 32rpx;
								color: #333333;
							}
							>view{
								width: 102rpx;
								margin-left: 10rpx;
								text-align: center;
								font-size: 20rpx;
								color: #be7f22;
								background-color: #fcf5ec;
							}
						}
						.middle{
							.item{
								padding-bottom: 30rpx;
								display: flex;
								justify-content: space-between;
								>view:nth-of-type(1){
									>text:nth-of-type(1){
										font-size: 44rpx;
										color: #f85656;
										font-weight: bold;
									}
									>text:nth-of-type(2){
										font-size: 24rpx;
										color: #f85656;
										margin-bottom: 14rpx;
									}
								}
								>view:not(:nth-of-type(1)){
									display: flex;
									flex-direction: column;
									>text:nth-of-type(1){
										font-size: 32rpx;
										color: #333333;
										font-weight: bold;
										margin-bottom: 12rpx;
									}
								}
							}
						}
					}
					>.item:nth-last-of-type(1){
						border-bottom: 1rpx solid transparent;
					}
				}
				
			}
			>.item4{
				padding: 40rpx 0;
				text-align: center;
				font-size: 28rpx;
				color: #999999;
			}
		}
	}
</style>
